﻿<UserControl x:Class="SpatialQueryBuilderControl"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:dundas="clr-namespace:Dundas.Maps.WinControl;assembly=DundasWinMap"  
    xmlns:winforms="clr-namespace:System.Windows.Forms;assembly=System.Windows.Forms"
    MinWidth="300" MinHeight="200">
    <DockPanel>
        <WrapPanel DockPanel.Dock="Top" Margin="10">
            <RadioButton Margin="10" Name="rdoState">States</RadioButton>
            <RadioButton Margin="0,10,10,10" Name="rdoCounty">Counties</RadioButton>
            <RadioButton Margin="0,10,10,10" Name="rdoCityPoint">Towns and Cities (points)</RadioButton>
            <RadioButton Margin="0,10,10,10" Name="rdoMetro">Metro Areas</RadioButton>
        </WrapPanel>
        <DockPanel DockPanel.Dock="Bottom">
            <Button DockPanel.Dock="Right" Margin="10" Name="btnAddToQuery">Add to Query</Button>
            <TextBox MinHeight="80" Name="txtSQL" Style="{StaticResource SqlFont}"></TextBox>
        </DockPanel>
        <WrapPanel DockPanel.Dock="Left">
            <StackPanel>
                <WindowsFormsHost Width="200" MinHeight="200" Name="WindowsFormsHost2" Style="{StaticResource WinformsStyleFont}">
                    <winforms:ComboBox Name="cboPlaceName" DropDownWidth="200" IntegralHeight="True" DropDownStyle="Simple"/>
                </WindowsFormsHost>
                <WrapPanel>
                    <Label>Expand by (km)</Label>
                    <TextBox Name="nudExpandBy" MinWidth="30"></TextBox>
                </WrapPanel>
            </StackPanel>
            <Button Margin="10" Name="btnApply">Apply</Button>
        </WrapPanel>
        <WindowsFormsHost Margin="10,0,0,10" Name="WindowsFormsHost1">
            <dundas:MapControl Name="MapControl1"></dundas:MapControl>
        </WindowsFormsHost>

    </DockPanel>
</UserControl>
